<%@page import="java.awt.List" import="java.util.Map" %>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
    
<%@ taglib prefix="s" uri="/struts-tags"%> 
<jsp:useBean id="Teacher" class="bean.Teacher" scope="session"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link rel="stylesheet"  href="<%=request.getContextPath() %>/assets/css/bootstrap.min.css"/>

<link href="<%=request.getContextPath() %>/css/admin/admin_manage_teacher.css" rel="stylesheet">
</head>
<body>

<jsp:include page="header.jsp"></jsp:include>
	<div class="con">
		<form action="addteacher.action" method="post">
		<div class="add_teacher">
			<h4><strong>添加教师</strong></h4>
			<input type="text" name="username" placeholder="用户名*">
			<input type="text" name="password" placeholder="初始口令*">
			<input type="text" name="realname" placeholder="真实姓名">
			<input type="checkbox" name="power" value="true">管理员</input>
			<button type="submit" class="btn btn-primary" value="添加">添加</button>
		</div>
		</form>
	
		<div class="all_teacher">
			<table class="table table-striped table-bordered">
				<thead>
					<tr>
						<th><strong>用户名</strong></th>
						<th><strong>全名</strong></th>
						<th><strong>是否管理员</strong></th>
						<th>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
					</tr>
				
				</thead>
				<tbody>
				
				
				<s:iterator value="allteacherlist"  >
				<tr>
				<td><s:property value="teachername"/></td>
				<td><s:property value="fullname"/></td>
				<td><s:property value="power"/></td>	
				<td>
					<a href="admin_modifyTeacher.action?id=<s:property  value="teacherid"/>" title="编辑"><i class="hd glyphicon glyphicon-edit" ></i></a>&nbsp;
					<a href="admin_deleteTeacher.action?id=<s:property  value="teacherid"/>" title="删除"><i class="hd glyphicon glyphicon-remove" style="color: #333333;"></i></a>
				</td>
				
				<!-- pencil-square-o -->
				</tr>
				</s:iterator>

			
				</tbody>
			
			</table>
	
		</div>
	
	</div>

</body>
</html>